package com.bsj.travel.security.annotation;

import com.bsj.travel.security.config.ApplicationConfig;
import com.bsj.travel.security.feign.FeignAutoConfiguration;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.context.annotation.Import;
import org.springframework.scheduling.annotation.EnableAsync;

import java.lang.annotation.*;

@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
//表示通过AOP框架暴露该代理对象。AopContent能够访问
@EnableAspectJAutoProxy(exposeProxy = true)
//指定要扫描的Mapper类的包路径
@MapperScan(basePackages = {"com.bsj.travel.**.mapper"})
//@MapperScan(basePackages = {"com.bsj.travel.**.mapper.mysql"})
//开启异步线程执行
@EnableAsync
@Import({ApplicationConfig.class, FeignAutoConfiguration.class})
public @interface EnableCustomConfig {
}
